﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="BSCTreeView.aspx.cs" Inherits="BSCMFF.Web.Pages.BSCTreeView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" RestoreOriginalRenderDelegate="false">

    <telerik:RadTreeList ID="RadTreeList1" runat="server" OnNeedDataSource="RadTreeList1_NeedDataSource"
        ParentDataKeyNames="ParentID" DataKeyNames="ID" 
        AutoGenerateColumns="false" AllowSorting="true" 
        ondatabound="RadTreeList1_DataBound" 
        onitemdatabound="RadTreeList1_ItemDataBound">
        <Columns>
            <telerik:TreeListTemplateColumn DataField="Name" UniqueName="ProductName" HeaderText="Product">
                <ItemTemplate>
                    <asp:Image ID="img" runat="server" ImageUrl="~/Images/Symbols-Delete-icon.png" />
                    <%# Eval("Name")%><%--<%# Eval("Quantity").ToString() != "" ? "&nbsp;(" + Eval("Quantity").ToString() + ")" : ""%>--%>
                </ItemTemplate>
                <HeaderStyle Width="300px" />
            </telerik:TreeListTemplateColumn>
            <telerik:TreeListBoundColumn DataField="Name" UniqueName="ID" HeaderText="Category ID" />


            <%--<telerik:TreeListBoundColumn DataField="Name" UniqueName="ID" HeaderText="Category ID" />--%>
            <%--<telerik:TreeListBoundColumn DataField="Persp" UniqueName="ID" HeaderText="Category ID" />
            <telerik:TreeListBoundColumn DataField="ID" UniqueName="ID" HeaderText="Category ID" />--%>
            
            
            <%--<telerik:TreeListBoundColumn DataField="Price" UniqueName="Price" DataFormatString="{0:C2}"
                HeaderText="Price" DataType="System.Decimal">
                <ItemStyle HorizontalAlign="Right" />
            </telerik:TreeListBoundColumn>
            <telerik:TreeListCheckBoxColumn DataField="InStock" UniqueName="InStock" HeaderText="In stock">
                <HeaderStyle Width="60px" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:TreeListCheckBoxColumn>--%>
            <telerik:TreeListBoundColumn DataField="ParentID" UniqueName="ParentID" HeaderText="Parent Category ID" />
        </Columns>
    </telerik:RadTreeList>

<%--
<telerik:RadTreeList ID="RadTreeList2" runat="server" DataKeyNames="KPI_ID" ParentDataKeyNames="Strategic_Target_FK"
        DataSourceID="EntityDataSourceKPIs" AutoGenerateColumns="false">
        <Columns>
                <telerik:TreeListBoundColumn DataField="KPI_ID" UniqueName="id" HeaderText="ID" />
                <telerik:TreeListBoundColumn DataField="Text" UniqueName="Categories" HeaderText="Categories" />
                <telerik:TreeListBoundColumn DataField="Strategic_Target_FK" UniqueName="parentid" HeaderText="Parent ID" />
            </Columns>
    </telerik:RadTreeList>
    
    
<telerik:RadTreeList ID="RadTreeList3" runat="server" DataKeyNames="SBU_ID" ParentDataKeyNames="Superior_SBU_FK"
        DataSourceID="EntityDataSource1" AutoGenerateColumns="false">
        <Columns>
                <telerik:TreeListBoundColumn DataField="Name" UniqueName="id" HeaderText="ID" />
                <telerik:TreeListBoundColumn DataField="Description" UniqueName="Categories" HeaderText="Categories" />
                <telerik:TreeListBoundColumn DataField="Superior_SBU_FK" UniqueName="parentid" HeaderText="Parent ID" />
            </Columns>
    </telerik:RadTreeList>--%>
</telerik:RadAjaxPanel>
    
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=BSCEntities" DefaultContainerName="BSCEntities" 
        EnableFlattening="False" EntitySetName="SBUs">
    </asp:EntityDataSource>
<asp:EntityDataSource ID="EntityDataSourceKPIs" runat="server" 
        ConnectionString="name=BSCEntities" DefaultContainerName="BSCEntities" 
        EnableFlattening="False" EntitySetName="KPIs">
    </asp:EntityDataSource>
</asp:Content>
